<tr class="message">
    <td class="left-part" valign="top">
    </td>
    <td class="middle-part" align="right">
        {{ message['body'] }}
    </td>
    <td class="right-part" valign="top">
        <img src="{{ handler.get_avatar(message['sender'].id, 'thumbnail50x50') }}" class="avatar-small">
    </td>
</tr>